﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using UMS.Essences;

namespace UMS
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            if (User.Current == null)
            {
                UserChooseForm ff = new UserChooseForm();
                DialogResult d = (new UserChooseForm()).ShowDialog();
                if (d == DialogResult.Cancel)
                    return;
                else
                    User.Current = ff.User;
            }

            Application.Run(new Messenger());
        }
    }
}
